import os

abspath=os.getcwd() #获取当前路径
print("当前路径："+abspath)

rootpath =os.path.abspath('..') #获取上级路径
print("上级路径："+rootpath)

root_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
log_path = os.path.join(root_path, 'python-interface-automation/data/datajson/tag/create.json') #路径合并
# print(read_json(log_path,"create"))
print("路径合并："+log_path)

rootpath =os.path.abspath('../..') #获取上上级路径
print("上上级路径："+rootpath)